package com.tengju.bff.interfaces.covercharge.constant;


public enum CustPaidTransStatusEnum {

    FOR_QUERY(0,"申请提交(开始查询渠道)"),
    SUCCESSFUL(1,"转账申请成功"),
    FAILURE(2,"转账申请失败"),
    UNKNOWN(3,"未知"),
    SYSTEM_ERROR(4,"外部系统错误"),
    ;

    private Integer code;
    private String desc;

    CustPaidTransStatusEnum(Integer code, String desc){
        this.code=code;
        this.desc=desc;
    }
    public Integer getCode(){
        return this.code;
    }
    public String getDesc(){
        return this.desc;
    }

    public static CustPaidTransStatusEnum getByCode (Integer code){
        for(CustPaidTransStatusEnum accountTypeEnum : (CustPaidTransStatusEnum.values())){
            if(accountTypeEnum.getCode().equals(code)){
                return accountTypeEnum;
            }
        }
        return null;
    }
}
